package cii_lib;

public class CCII_ACCESS_ICON extends CCII_ACCESS_CONST{
  private int _Val[]; 
  public CCII_ACCESS_ICON(String name, int size, int val[]) {super(name, size); _Val=val;}
  public CCII_ACCESS_ICON(String name, int size) {super(name, size); _Val=null;}
  protected void Set(int val[]) {_Val=val;};
  public int Get(int index) {
    if (index<0 || index>=Size()) try {
      throw new CiiLibException("CCII_ACCESS_ICON",CiiLibException.MSG.INDEX_ERROR);
    } catch (CiiLibException e) {e.printStackTrace();}
    return(_Val[index]);
  };
};
